#!/usr/bin/python
# -*- coding: UTF-8 -*-

import re

f= open('content.txt')

content = f.read()
content = content[2:-1]


content = re.split('{|},\n',content)
content = content[0:-1]

f.close()

beginTime_s=[]
EndTime_s=[]
ChannelId_s=[]
Text_s = []
GlobalOrder_s=[]

#print content[-1]
for line in content:
    #print line
    beginTime = re.findall('"begin_time":(.+?),',line)[0]
    EndTime = re.findall('"end_time":(.+?),',line)[0]

    ChannelId = re.findall('"channel_id":(.+?),',line)[0]
    Text = re.findall('"text":"(.+?)","',line)[0]

    GlobalOrder = re.findall('"globalOrder":(.+?),',line)[0]
    
    beginTime_s.append(beginTime)
    EndTime_s.append(EndTime)
    ChannelId_s.append(ChannelId)
    Text_s.append(Text)
    GlobalOrder_s.append(GlobalOrder)



for t in Text_s:
    print t








